package com.ztools.common.model.pc.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ztools.common.model.pc.BaseModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @Author: seeTools
 * @Date: 2023/5/22  9:38
 * @Version 1.0
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict_data")
public class DictData extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 字典类型ID
     */
    private Long dictId;

    /**
     * 字典名称
     */
    @TableField(exist = false)
    private String dictName;

    /**
     * 字典编码
     */
    private String code;

    /**
     * 字段值
     */
    private String value;

    /**
     * 显示顺序
     */
    private Integer sequence;

}
